package com.dkm.biz.gl.repository.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.dkm.base.core.helper.SpringHelper;
import com.dkm.base.db.persistence.dao.IQueryDao;
import com.dkm.biz.gl.domain.FromTrack;
import com.dkm.biz.gl.persistence.dao.FromTrackQueryDao;
import com.dkm.biz.gl.persistence.entity.FromTrackPo;
import com.dkm.biz.gl.repository.FromTrackRepository;
import com.dkm.biz.repository.AbstractRepository;

/**
 * 对象功能:访问来源记录 Repository接口的实现类
 * 开发公司:SKG.COM
 * 开发人员:YCM
 * 创建时间:2015-12-23 14:21:32
 */
@Repository
public class FromTrackRepositoryImpl extends AbstractRepository<String, FromTrackPo,FromTrack> implements FromTrackRepository{
	  
	@Resource
	private  FromTrackQueryDao fromTrackQueryDao;

	public FromTrack newInstance() {
		FromTrackPo po = new FromTrackPo();
		FromTrack fromTrack = SpringHelper.getBean(FromTrack.class);
		fromTrack.setData(po);
		return fromTrack;
	}

	public FromTrack newInstance(FromTrackPo po) {
		FromTrack fromTrack = SpringHelper.getBean(FromTrack.class);
		fromTrack.setData(po);
		return fromTrack;
	} 
	
	@Override
	protected IQueryDao<String, FromTrackPo> getQueryDao() {
		return fromTrackQueryDao;
	}
	
}
